package in.muton.edushare.pages.coursepages;

import java.util.Arrays;

import in.muton.edushare.components.autocomplete.PeoplePanel;

import java.util.Arrays;

import org.apache.wicket.PageParameters;

import com.edushare.common.constants.ApplicationConstants;
import com.edushare.common.vo.Enrolments;

public class CourseInvite extends CourseBase {

	public CourseInvite(PageParameters params) {
		super(params);
		prc.check(Arrays.asList(Enrolments.TEACHER));
		add(new PeoplePanel("invite",this,getCourseInstance()));
	}

	@Override
	protected String getActivePage(PageParameters params) {
		return "courseInvite";
	}

	@Override
	public String getPageTitle() {
		return getLoggedInUser().getCompleteUserName() + " | "
		+ getCourse().getObject().getCourseName()
		+ " | Invite People | "
		+ ApplicationConstants.APPLICATION_NAME;		
	}
}
